package org.haq.bae.datamodel;

import java.util.ArrayList;
import java.util.List;

/**
 * ViewModel
 * User: INDOCYBER
 * Date: 5/1/12
 * Time: 8:32 PM
 * Description:
 */
public class ViewModel extends AbstractModel implements Validatable {

    private String entityId;
    private String caption;
    private String instruction;
    private final List<ViewFieldModel> viewFieldModelList = new ArrayList<ViewFieldModel>();
    private final List<String> filterFields = new ArrayList<String>();
    private final List<CommandModel> commandModels = new ArrayList<CommandModel>();

    public ViewModel() {

    }

    public ViewModel(String id, String caption) {
        this.id = id;
        this.caption = caption;
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    public String getInstruction() {
        return instruction;
    }

    public void setInstruction(String instruction) {
        this.instruction = instruction;
    }

    public List<ViewFieldModel> getViewFieldModelList() {
        return viewFieldModelList;
    }

    @Override
    public boolean isValid() {
        return false;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public List<String> getFilterFields() {
        return filterFields;
    }
}
